package com.aiyi.server.manager.nginx.utils;

import org.springframework.util.DigestUtils;

public class MD5Util {
    public static String getMD5(String str, String slat){
        String base = slat + str;
        String md5 = DigestUtils.md5DigestAsHex(base.getBytes());
        return md5;
    }

    public static void main(String[] args) {
        System.out.println(MD5Util.getMD5("admin","sthj@2021!"));
    }
}
